{extend name='base'/}
{block name='content'}
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">类型属性管理</a></li>
    <li class="active">编辑属性</li>
</ul>
<div class="col-sm-12">
    <section class="panel panel-default">
        <header class="panel-heading font-bold">编辑属性</header>
        <div class="panel-body">
            <form method="post" action="" class="bs-example form-horizontal">
                <div class="form-group">
                    <label class="col-lg-2 control-label">{$type['tname']} --所属类型</label>
                    <div class="col-lg-10">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">所属类型</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="{$type['tname']}" disabled>
                        <input type="text" name="tid" value="{:input('param.taid')}">
                        <input type="hidden" class="form-control" value="{$oldData['taid']}" name="taid">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">属性名称</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" value="{$oldData['taname']}" name="taname">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">属性值</label>
                    <div class="col-lg-10">
                        <textarea name="tavalue" class="form-control" cols="30" placeholder="红色,蓝色,粉色,白色,黑色--（英文逗号隔开）">{$oldData['tavalue']}</textarea>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-lg-2 control-label">属性类型</label>
                    <div class="col-lg-10">
                        <div class="radio">
                            <label>
                                <!--<input type="radio" name="class"  value="0" checked> 普通属性-->
                                <input type="radio" name="class"  value="0"
                                       {if condition="($oldData['class'] == 0)"} checked {/if}
                                >普通属性
                            </label>
                        </div>
                        <div class="radio">
                            <label>
                                <input type="radio" name="class"  value="1"
                                       {if condition="($oldData['class'] == 1)"} checked {/if}
                                >规格
                            </label>
                        </div>
                    </div>
                </div>


                <div class="form-group">
                    <div class="col-lg-offset-2 col-lg-10">
                        <button type="submit" class="btn btn-sm btn-default">添加保存</button>
                    </div>
                </div>
            </form>
        </div>
    </section>
</div>
{/block}
